<?php

namespace app\admin\model\mu\role;

use think\Model;

/**
 * Bag
 */
class Bag extends Model
{
    // 表名
    protected $name = 'mu_role_bag';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = true;


    public function muRoleData()
    {
        return $this->belongsTo(\app\admin\model\mu\role\Data::class, 'role_data_id', 'id');
    }

    public function muSetItem()
    {
        return $this->belongsTo(\app\admin\model\mu\set\Item::class, 'item_id', 'id');
    }
}